package constants;

/**
 * Created by Administrator on 2018/3/19.
 */

public class Constants {

    /**
     * 没有连接网络
     */
    public static final int NETWORK_NONE = -1;
    /**
     * 移动网络
     */
    public static final int NETWORK_MOBILE = 0;
    /**
     * 无线网络
     */
    public static final int NETWORK_WIFI = 1;

    public static final int NETWORK_ETHERNET = 9;

    public static boolean IS_NETWORK = true;
    public static final boolean IS_FUYI = false;
    public static final boolean IS_OLD_ANDROID = false;

    public static boolean CHECKING = false;  // 验收中

    public static final int COMBO_REQUESTCODE = 100;
    public static final int COMBO_MODIFY_RESULTCODE = 101;
    public static final int COMBO_ADD_RESULTCODE = 202;

    public static final int IRIS_REGISTER = 0;//虹膜注册
    public static final int FINGERPRINT_REGISTER = 1;//指纹注册
    public static final int FINGERPRINT_REGISTER_DELAY = 2000;

    public static int TIME_OUT = 60000;
    public static int EXIT = 60 * 60 * 8 * 1000;  // 8小时

    public static final String TIME_OUT_KEY = "time_out_key";
    public static final String SELECT_TIME_OUT_KEY = "select_time_out";
    public static final String EXIT_KEY = "exit_value";
    public static final String SELECT_EXIT_KEY = "select_exit_value";
    public static final String SOUND_KEY = "sound_key";

    public static boolean IS_NET = true;

    public static final String SHARED_PREFERENCE = "SharedPreferences";
    //保存机器码
    public static final String MACHINE_CODE = "MachineCode";

    //保存激活时候的科室的编码
    public static final String DEPARTMENT_CODE = "DepartmentCode";
    //机器码
    public static final String TOKEN = "Token";
    //终端机器的ID(数据库TerminalInfo表的ID)
    public static final String TERMINALINFO_ID = "TerminalInfoID";
    //供应商可以用的CabinetInfoId
    public static final String ENABLE_LOGICNUMBER = "EnableCabinetInfoIds";
    //每台终端下面的柜子id号
    public static final String CABINETINFO_IDS = "CabinetInfoIds";
    //和柜号(1,2,3,4,5)拼接起来,是单片机通讯地址的key
    public static final String ADDRESS = "Address";
    //单片机的通讯地址的key
    public static final String ADDRESS_FIRST = "Address1";
    public static final String ADDRESS_SECOND = "Address2";
    public static final String ADDRESS_THIRD = "Address3";
    public static final String ADDRESS_FOURTH = "Address4";
    public static final String ADDRESS_FIFTH = "Address5";

    public static  final String LOCK_SCREEN="LockScreen";//锁屏时间的key

    public static final String FINGERPRINT_USER_BEAN_CHANGETIME = "FingerprintUserBeanChangeTime";//保存指纹用户修改的时间
    public static final String LRIS_USER_BEAN_CHANGETIME = "lrisUserBeanChangeTime";//保存虹膜用户修改的时间


    //将cabinetinfo当做此类的属性,保存
    public static final String CABINETINFO_PARENT_BEAN = "CabinetInfoParentBean";

    public static final String CABINETINFO_LOGICNUMBER_HASHMAP = "CabinetInfoIdAndLocicNumber";

    public static final String USER_INFO_BEAN = "UserInfoBean";


    public static final String ALL_DEPT = "all_dept"; // 协和 全部科室


    //用于拼接单片机发送过来的增量和减量,在相应页面切割
    public static final String INCREASE_DECREASE_SPLIT = "     and     ";

    //Intent跳转页面传值的key名

    public static final String LOG_DETAIL = "LogDetail";
    public static final String OPEN_DOOR = "OpenDoor";
    public static final String OPEN_DOOR_REMIND = "OpenDoorRemind";
    public static final String TAKE_AND_RETURN_ACTIVITY = "TakeAndReturn";
    public static final String CHECK_ACTIVITY = "Check";
    public static final String CHECK_ACTIVITY_ISFIRST = "CheckIsFirst";
    public static final String INVENTORY_ACTIVITY = "Inventory";
    public static final String OPEN_DOOR_CABINET = "OpenDoorCabinet";
    public static final String OPEN_DOOR_CABINET_MORE = "OpenDoorCabinet";

    // 医院信息
    public static final String HOSPITAL_NAME = "name"; //医院名称
    public static final String HOSPITAL_ADDRESS = "address"; // 医院地址
    public static final String HOSPITAL_DEPARTMENTS = "departments"; // 科室
    public static final String HOSPITAL_REMARK = "remark";  // 备注


    //bundle传递的key名
    public static final String LOG_DETAIL_BUNDLE = "LogDetailBundle";
    public static final String REGISTER_MODE = "RegisterMode";//注册的模式(虹膜和指纹)
    public static final String REGISTER_ROLE = "RegisterRole";//注册的角色(医院和供应商)
    public static final String CHECK_TYPE = "CheckType";//验收的类型(第一次验收和点击返回的验收)
    public static final String IMAGE_PATH = "ImagePath";//供应商注册时候的图片路径
    public static final String IMAGE_POSITION = "ImagePosition";//供应商注册时候,点击的图片的位置
    public static final String STAFF_ADMIN_FRAGMENT_BEAN = "StaffAdminFragmentBean";
    public static final String REGISTER_TYPE_FRAGMENT = "RegisterTypeFragment";
    public static final String HOSPITAL_REGISTER_FRAGMENT = "HospitalRegisterFragment";
    public static final String SUPPLIER_REGISTER_FRAGMENT = "SupplierRegisterFragment";
    public static final String FACTORY_REGISTER_FRAGMENT = "FactoryRegisterFargment";
    public static final String BASE_IRIS_REGISTER_FRAGMENT = "BaseIrisRegisterFragment";
    public static final String BASE_FINGERPRINT_REGISTER_FRAGMENT = "BaseFingerprintRegisterFragment";
    public static final String CHECK_FRAGMENT = "CheckFragment";
    public static final String CHECK_ERROR_FRAGMENT = "CheckErrorFragment";
    public static final String TAKE_FRAGMENT = "TakeFragment";
    public static final String RETURN_FRAGMENT = "ReturnFragment";
    public static final String TAKE_ERROR_FRAGMENT = "TakeErrorFragment";
    public static final String RETURN_ERROR_FRAGMENT = "ReturnErrorFragment";
    public static final String ANTENNA = "antenna";
    public static final String IS_OPEN_SERIALPROT_THEARD = "is_open_serialprot_theard";
    public static final String LRIS_LOGIN_DATA = "lris_login_data";

    public static boolean CHECK_LOG = false; //开启log


    //指纹命令的执行结果
    public static final int ACK_SUCCESS = 0x00;//执行成功
    public static final int ACK_FAIL = 0x01;//执行失败
    public static final int ACK_FULL = 0x04;//数据库满
    public static final int ACK_NOUSER = 0x05;//没有这个用户
    public static final int ACK_USER_EXIST= 0x07;//用户已存在
    public static final int ACK_TIMEOUT = 0x08;//图像采集超时
    public static final int ACK_BREAK = 0x18;//终止当前命令
    public static final int ACK_IMAGEFIAL = 0x84;//图像不合格

    public static final int OPEN = 1;//开门
    public static final int CHECK = 2;//验收
    public static final int INVENTORY = 3;//盘点
    public static final int CHECK_AGAIN = 4;//非第一次验收

    //用户角色区分
    public static final int ROLE_NURSE = 1;//护士
    public static final int ROLE_HEAD_NURSE = 2;//护士长
    public static final int ROLE_MANAGE = 3;//高层管理
    public static final int ROLE_SUPPLIER = 4;//供应商
    public static final int ROLE_FACTORY = 5;//厂商


    public static final int RFID_LENGTH = 28;//RFID的长度
    public static final int REPEAT_COUNT = 2;//重发的次数
    public static final String ANDROID_ADDRESS = "1234567890AB";//安卓版的地址
    public static final int  REPART_DELAY = 3000;//重发的间隔

    public static final String CABINET_NUMBER = "cabinet_number_map";

    public static final String TIMEOUT_COUNT = "timeout_count"; // 近效提醒数量
    public static final String INVENTORY_COUNT = "inventory_count"; // 库存预警数量
    public static final String RETURNHINT_COUNT = "returnhint_count"; // 未归提示数量
    public static final String ERRORGOODS_COUNT = "errorgoods_count"; // 异常记录数量
    public static final String TIME = "time"; // 时间

    public static final int REGISTER_FINGER_IRIS = 100000; // 输入 指纹 或者 虹膜 返回按钮
    public static final int REGISTER_TYPE_FINGER_IRIS = 100000; // 选择 指纹 或者 虹膜 返回按钮

    public static final String GOODS_DETIAL_INFO = "goods_detial_info";
    public static final String GOODS_DETIAL_BAR = "goods_detial_bar";

    public static final String RECORD_ERROR_GOODS = "record_error_goods" ; // 异常物资记录
    public static final String APK_NAME = "record_error_goods" ; // apk文件名

    public static final String COMBO_BATCH_NUMBER  = "combo_batch_number" ; // 套餐批次号
    public static final String THE_DAY  = "the_day" ; // 当前时间  用来重置批次号

    public static boolean IS_SHOW_FASTER_OPENDOOR = true ; // 是否显示快捷开门
    public static boolean IS_FRIST_OPENDOOR = true ; // 第一次快捷开门提示语音
    public static boolean IS_CANCLE_OPENDOOR = true ; // 是否需要快捷开门
    public static boolean IS_MOUNTED = false;
}
